import sqlite3

conn = sqlite3.connect('user_data.db')
c = conn.cursor()

# 创建用户表
c.execute('''
CREATE TABLE IF NOT EXISTS users (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    username TEXT NOT NULL,
    password TEXT NOT NULL
)
''')

conn.commit()
conn.close()